-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove $ symbol from some commands #5979
Conversation
<!-- Thank you for opening a PR! Here are some things you need to know before submitting: 1. Please read our developer guideline: https://github.com/redhat-developer/odo/wiki/Dev:-odo-Dev-Guidelines 2. Label this PR accordingly with the '/kind' line 3. Ensure you have written and ran the appropriate tests: https://github.com/redhat-developer/odo/wiki/Dev:-Writing-and-running-tests 4. Read how we approve and LGTM each PR: https://github.com/redhat-developer/odo/wiki/Pull-Requests:-Review-guideline Documentation: If you are pushing a change to documentation, please read: https://github.com/redhat-developer/odo/wiki/Documentation:-Contributing --> **What type of PR is this:** <!-- Add one of the following kinds: /kind bug /kind feature /kind cleanup /kind tests Feel free to use other [labels](https://github.com/redhat-developer/odo/labels) as needed. However one of the above labels must be present or the PR will not be reviewed. This instruction is for reviewers as well. --> /kind documentation **What does this PR do / why we need it:** This PR does the following: * Removes all `$` from commands that should be "copied-and-pasted" * Separates all console output to a separation section. Notes: * "Details" markdown feature would of been used, but Docusaurus does not support <details> within a <tab>. **Which issue(s) this PR fixes:** <!-- Specifying the issue will automatically close it when this PR is merged --> Fixes redhat-developer#5844 **PR acceptance criteria:** - [X] Documentation **How to test changes / Special notes to the reviewer:** Signed-off-by: Charlie Drage <[email protected]>
✅ Deploy Preview for odo-docusaurus-preview ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
|
||
Example - | ||
```shell | ||
odo create namespace mynamespace | ||
✓ Namespace "mynamespace" is ready for use | ||
✓ New namespace created and now using namespace: mynamespace | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure about this. Currently, both the section about command and output seem unrelated to each other.
I would rather keep this as the following -
To create a namespace you can run odo create namespace <name>
.
Example -
$ odo create namespace mynamespace
✓ Namespace "mynamespace" is ready for use
✓ New namespace created and now using namespace: mynamespace
Same comment for all the changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, that's intentional. But @valaparthvi has a good point and I'll update it so that it includes the commands for the examples.
The intention was to keep it separate so we don't have to add a "Example output:" each time to each command..
Updated the PR based on the review 👍 |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dharmit The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably out of scope for this PR, but I still think it's relevant to it.
There are a few docs where the code block also includes a comment, I don't like the idea of copying the comment when I copy the code, and I was wondering if we can remove the comment out of the code block from the following docs:
- https://deploy-preview-5979--odo-docusaurus-preview.netlify.app/docs/command-reference/add-binding#interactive-mode
- https://deploy-preview-5979--odo-docusaurus-preview.netlify.app/docs/command-reference/completion#bash
I also noticed that there is an inconsistency in these command-reference docs. Some commands show a sample output along with them, while some don't. I'm wondering if you can fix that as well.
- https://deploy-preview-5979--odo-docusaurus-preview.netlify.app/docs/command-reference/describe-component
- https://deploy-preview-5979--odo-docusaurus-preview.netlify.app/docs/command-reference/delete-component
- https://deploy-preview-5979--odo-docusaurus-preview.netlify.app/docs/command-reference/logs
- https://deploy-preview-5979--odo-docusaurus-preview.netlify.app/docs/command-reference/remove-binding
odo logs
command does not have copy command at all like other docs, do you think we can fix that?
I understand these are a lot of changes, and some unrelated, so I wouldn't mind if they're taken up in a separate PR.
odo describe binding --name <component_name> | ||
``` | ||
|
||
$ odo describe binding --name <component_name> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not code blocked. Can you fix it?
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
The comments in the code blocks IMO are okay, but we can leave that to a cabal topic. It's similar to With regards to some commands being inconsistent in example output, you are totally right, that's outside the scope of the PR (that you mentioned). The docs team plans to do a refactor of our documentation so we'll have a lot more consistency then for examples! |
/lgtm |
* Remove $ symbol from some commands <!-- Thank you for opening a PR! Here are some things you need to know before submitting: 1. Please read our developer guideline: https://github.com/redhat-developer/odo/wiki/Dev:-odo-Dev-Guidelines 2. Label this PR accordingly with the '/kind' line 3. Ensure you have written and ran the appropriate tests: https://github.com/redhat-developer/odo/wiki/Dev:-Writing-and-running-tests 4. Read how we approve and LGTM each PR: https://github.com/redhat-developer/odo/wiki/Pull-Requests:-Review-guideline Documentation: If you are pushing a change to documentation, please read: https://github.com/redhat-developer/odo/wiki/Documentation:-Contributing --> **What type of PR is this:** <!-- Add one of the following kinds: /kind bug /kind feature /kind cleanup /kind tests Feel free to use other [labels](https://github.com/redhat-developer/odo/labels) as needed. However one of the above labels must be present or the PR will not be reviewed. This instruction is for reviewers as well. --> /kind documentation **What does this PR do / why we need it:** This PR does the following: * Removes all `$` from commands that should be "copied-and-pasted" * Separates all console output to a separation section. Notes: * "Details" markdown feature would of been used, but Docusaurus does not support <details> within a <tab>. **Which issue(s) this PR fixes:** <!-- Specifying the issue will automatically close it when this PR is merged --> Fixes redhat-developer#5844 **PR acceptance criteria:** - [X] Documentation **How to test changes / Special notes to the reviewer:** Signed-off-by: Charlie Drage <[email protected]> * fix based on review
What type of PR is this:
/kind documentation
What does this PR do / why we need it:
This PR does the following:
$
from commands that should be "copied-and-pasted"Notes:
support
Which issue(s) this PR fixes:
Fixes #5844
PR acceptance criteria:
How to test changes / Special notes to the reviewer:
Signed-off-by: Charlie Drage [email protected]